
func int B_GetGreatestPetzCrime(var C_Npc slf)
{
	if(C_NpcBelongsToOldCamp(slf))
	{
		if(PETZCOUNTER_OldCamp_Murder > 0)
		{
			return CRIME_MURDER;
		};
		if(PETZCOUNTER_OldCamp_Theft > 0)
		{
			return CRIME_THEFT;
		};
		if(PETZCOUNTER_OldCamp_Attack > 0)
		{
			return CRIME_ATTACK;
		};
		if(PETZCOUNTER_OldCamp_Sheepkiller > 0)
		{
			return CRIME_SHEEPKILLER;
		};
	};
	if(C_NpcBelongsToCity(slf))
	{
		if(PETZCOUNTER_City_Murder > 0)
		{
			return CRIME_MURDER;
		};
		if(PETZCOUNTER_City_Theft > 0)
		{
			return CRIME_THEFT;
		};
		if(PETZCOUNTER_City_Attack > 0)
		{
			return CRIME_ATTACK;
		};
		if(PETZCOUNTER_City_Sheepkiller > 0)
		{
			return CRIME_SHEEPKILLER;
		};
	};
	if(C_NpcBelongsToMonastery(slf))
	{
		if(PETZCOUNTER_Monastery_Murder > 0)
		{
			return CRIME_MURDER;
		};
		if(PETZCOUNTER_Monastery_Theft > 0)
		{
			return CRIME_THEFT;
		};
		if(PETZCOUNTER_Monastery_Attack > 0)
		{
			return CRIME_ATTACK;
		};
		if(PETZCOUNTER_Monastery_Sheepkiller > 0)
		{
			return CRIME_SHEEPKILLER;
		};
	};
	if(C_NpcBelongsToFarm(slf))
	{
		if(PETZCOUNTER_Farm_Murder > 0)
		{
			return CRIME_MURDER;
		};
		if(PETZCOUNTER_Farm_Theft > 0)
		{
			return CRIME_THEFT;
		};
		if(PETZCOUNTER_Farm_Attack > 0)
		{
			return CRIME_ATTACK;
		};
		if(PETZCOUNTER_Farm_Sheepkiller > 0)
		{
			return CRIME_SHEEPKILLER;
		};
	};
	if(c_npcbelongstocoast(slf))
	{
		if(PETZCOUNTER_COAST_MURDER > 0)
		{
			return CRIME_MURDER;
		};
		if(PETZCOUNTER_COAST_THEFT > 0)
		{
			return CRIME_THEFT;
		};
		if(PETZCOUNTER_COAST_ATTACK > 0)
		{
			return CRIME_ATTACK;
		};
	};
	if(c_npcbelongstopsicamp(slf))
	{
		if(PETZCOUNTER_PSICAMP_MURDER > 0)
		{
			return CRIME_MURDER;
		};
		if(PETZCOUNTER_PSICAMP_THEFT > 0)
		{
			return CRIME_THEFT;
		};
		if(PETZCOUNTER_PSICAMP_ATTACK > 0)
		{
			return CRIME_ATTACK;
		};
	};
	return CRIME_NONE;
};

